// 手机
export const PHONE = /^1\d{10}$/// /^1(3[0-9]|4[57]|5[0-35-9]|7[0135678]|8[0-9])\d{8}$/

// 固定电话号码 /^((0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/
export const TEL = /^((0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/

// 账户名
export const ACCOUNT = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z\u4e00-\u9fa5]{4,12}$/

// 密码强度
export const PASSWORD = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/

// E-Mail 地址
export const EMAIL = /[\\w!#$%&'*+/=?^_`{|}~-]+(?:\\.[\\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\\w](?:[\\w-]*[\\w])?\\.)+[\\w](?:[\\w-]*[\\w])?/

// 15位身份证号码
export const IDENTITY_CARD_15 = /^[1-9]\\d{7}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}$/

// 18位身份证号码
// export const IDENTITY_CARD_18 = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/

// export const IDENTITY_CARD_18 = /^[0-9]\d{0,17}$/
export const IDENTITY_CARD_18 = /^(([0-9]{0,18})|([0-9]{17}([Xx])))$/

// 银行卡号
export const NUMBER = /^[0-9]*$/

// 支付密码
export const PAY_PWD = /\d{6}$/
// 限定最大金额位数
export const MONEY = /^(0|[1-9]\d{0,6})$/
// 纯数字
export const PHONUM = /^(0|[1-9]\d{0,11})$/
// 銀行卡
export const BANKCARDNUN = /^(0|[1-9]\d{0,21})$/
// 短信验证码
export const MSGCODE = /^([0-9]\d{0,5})$/
// 姓名为汉字
export const CHINESE = /^([\u4e00-\u9fa5])+$/
// 字母
export const CHAR = /[A-Za-z]/
// 金额为整数或两位小数
// export const TWODECIMAL = /(^[1-9]{1}[0-9]*$)|(^[0-9]*\.[0-9]{2}$)/
// export const TWODECIMAL = /^[0-9]+(.[0-9]{0,2})?$/
export const TWODECIMAL = /^[0-9]+(\.[0-9]{0,2})?$/
